hash-object --literally: fix buffer overrun with extra-long object type