Pads zeros in toBytes output, fixes #121
Merge pull request #122 from dcousens/fix121

Pads zeros in toBytes output, fixes #121