Update core.js

Fixed a type issue with sealed classes.
Added support for an alternative definition syntax using member package
methods.