Add basic metaclass support for clamping