$_belongs_to serialization and bug with bad scheme