Added support for embedded polymorphic associations

Two hooks exist for the serialization and materialization of an embedded
polymorphic association:
* `addType` that adds the record's type to the serialized data
* `extractEmbeddedType` that retrieves the record's type from the
payload.

Both hooks rely in the JSONSerializer on `keyForEmbeddedType`, which returns the string used to
represent the record's type in the payload. The default value is
`'type'`