Made apply work for any Function, not just BuiltinFunctions.

There's no reason why apply can't work on any Function.