Add support for embedded polymorphic belongsTo

Fixes #2265.
ActiveModelSerializer of rails serializes polymorphic as such 
```
secretLab: {
type: "batCave",
id: 1
}
```