Fix issue where a batch type would not be saved (resolves #50)
Merge commit 'fad243eeddcc163f3db39eb728448a7a9a2719a0'