Fixes flaw when array() attribute is used in a model, array diff should use keys