Fix for array of hashes with nested attributes with lookup for multiple attributes, should refactor