Fix to-byte-array handling of Integer and Long