Added support for callable metaclass, partially implements issue #65