Fix typeof for proxy methods.

Switched to using a function template so the type will
be function instead of object. Previously we just returned
a callable object.

[TIMOB-13815]
Merge pull request #43 from joshthecoder/TIMOB-13815

[TIMOB-13815] Blackberry: Can't identify functions via JS on Titanium proxy objects