Made apply work for any Function, not just BuiltinFunctions.

There's no reason why apply can't work on any Function.
Merge pull request #18 from JonathanAquino/apply

Made apply work for any Function, not just BuiltinFunctions.