Fix NiceHasher for primitive arrays