add support for classes as input to CreateDynamicProxy