Added support for serializing polymorphic hasmany-to-none relations