Support for @constructor and @class. fixes #73