use filesize() for readbytes and readall on an IOStream

also decrease default initial array size used by readbytes
some updates to the (disabled) USE_MMAP code