Add support for has_one and has_many nested attributes.