remove insecure mktemp usage

mktemp only returns a filename, a malicous user could replace it before
it gets used.

also disable test_big_arrays because its slowness and memory+disk space requirement annoy me. Annoying tests do more harm than good.