Bugfix: don't lose unset dimensions on setter!

At the moment this is cosmetic as the underlying shapes don't lose
anything.  But definitely a bug!
Fix test
Merge pull request #33 from chinasaur/codegen/2

Bugfix: don't lose unset dimensions on setter!