[boost] Cannot serialize pointer through base without void_cast_register and register_type.