Fixed bug in numToBytes and util -> conv