bytearray: Import hex parsing code from pharo