serialization of reference to base does not work