Complete change of prototyper
Add unit tests for typetests.js, and debug isFunction