Improved support for models with nested attributes.