Dirty Tracking to close issue 10

As I wrote at length in the issue, this closes a bug in conjunction with active-record 4.0.0.rc1.