Fix double registration of a complex type