Fix handling of changed DateTime attributes

Took out the conversion of DateTime objects to strings, that is
just unnecessary.  DateTime objects should be kept as they are.

Also added test to make sure that changing a DateTime attribute
tracks a change.
Merge pull request #7 from getloaded/flag-dirty-only-if-attribute-changes

Fix handling of changed DateTime attributes