xmlWriter reference cleanup
don't overwrite erased repeat count property with initial data stored in mugtype (Case:48259)
Merge pull request #29 from dimagi/mwhite

fix repeat count issue