Fixes issue #42: Required integer values of zero not accepted
Merge pull request #46 from ben-ng/master

Fixes the fix from #43 that fixes #42