problem with pointer registration as metatype.