only call isDirty on persistent collection. fix #416
Merge pull request #421 from doctrine/ensure-persistent-collection

only call isDirty on persistent collection
cs fixes in test
Merge branch 'master' of git://github.com/doctrine/phpcr-odm into illegal-nodename-characters
Cleaned up tests and changed character restriction to only "/"