Fix NDims during writeDomain
Merge pull request #84 from ax3l/fix/writeDomain

Fix NDims during writeDomain