Performance improvement in toCopyPrimitives + dumpQueue works under all conditions now