Different array with different datastructure in same stream is being generated. FlushVar output is still buggy