Fixed a test case and added validation for undefined function names.
Added id/name/type fields to wingified function and a jsfly.fly() handler.