Add a method to init all the scalars, this is needed in the test environment because the created object ids in test start at 1 each time and need to be flushed. But this operation also needs to be pipelined for performance reasons.