Long_to_bytes did not support negative longs, new implementation does.