Plane: preserve the object order so that the test result is always consistent.
Code cleanup: removed some debug flags.