Class & Core fixes

Fixed the Class issue regarding the constructor.
Fixed an error when using instanceOf( variable, "undefined" ).