added support for resources with composite key; fixed ModelController handling of polymorphic mappings