WriteEntityState fix
Merge branch 'master' of https://github.com/signumsoftware/framework