Added mixin support for .methods() and .state()