#KJ-65 Replace objectClosure() with some cells structure. Fixed bugs introduced by previous commit. Added one more test for an uncovered case. All tests should pass.