Implemented type extensions (extends keyword)
replace Object.keys() polyfill by a simple loop on object keys
Merge pull request #5 from vondacho/master

Implementation of type extension
Improved define to avoid conflicts in environment using alternative require