hasMany attribute can be set directly. Fixed an isDirty bug when reverting a record with hasMany.

hasMany attributes can now be set(). Fixes #310.

Reverting a record with an embedded hasMany now updates isDirty.