CodeGen refactored and fully implemented ReflectProxy