[Haskell-iPhone] Automatically freeing function pointers