Fix long integer bug
Created by: matthew-d-jones
Fixes #133 (closed)
Fixes a bug with getting long integers from the json command. This stopped features
datasets being written for the example ESS NeXus files.
Added test for writing each of the four integer types.