Do not set id of record if record is frozen
Adds test case
Merge pull request #37 from jensljungblad/fixes-frozen-hash

Do not set id of record if record is frozen