Supports function as objects.
Removes funcproxies references.