Extended Typeof kfun for user added builtins

Updated the typeof kfun so that it returns a unique value defined in the type.h file usable via LPC.

Feature is not tightly coupled with -DCLOSURES option - they may be engaged separately.

Updated appropriate documentation files.