Replace freeze{Char,Int,Word,Float,Double}Array with freezeByteArray (using sizeofByteArray and a foreign import of C's memcpy()).