Updated to use regular integer ids.
Fixed bug where deserializing a resource with an integer id.
Added workaround for missing type