Fix randomness for non-8-bit typed arrays, test it some