Pads zeros in toBytes output, fixes #121

This adds an immediate (but preliminary) fix for #121 until I can submit the pull request for the stricter constructors code.