entity: support for readonly properties [closes #47]