Added HexGroup.write() wrapper function.