regexp: Add code used/needed by Phexample
hex: Add ByteArray>>#hex from Pharo and add a simple testcase from me