add support for persisting zero field entity

Implements #128