Fix changed attributes matching

If I define `as_indexed_json` function to return symbol-keyed hash then the changes will not be detected because:
```
def as_indexed_json
  {name: name} 
end

as_indexed_json.keys.include? 'name' #=> false
```

Thus I recommend to compare string variants.