Making sure ctor and other builtin functions have correct properties
Fixed builtin function should not have prototype.
Fixed irefs using stateful function for creation