Revert "object2.c optimizations."

This reverts commit 1971376a0828ceb4050d3ecaa5b55a8d976d41cd.
Revert "object2.c cleanup part 1."

This reverts commit ae5cb435f1cf116955e407e7d7d0f91c2570cede.
Revert "object2.c cleanup part 2."

This reverts commit 0e4974a42f8fd3892b1b4c147a34c36359b68602.
Revert "object2.c cleanup part 3."

This reverts commit 6a18560b179b01cefd149d7dc0ecaedf2eb23c94.
Revert "object2.c cleanup part 4."

This reverts commit 761cb1c765dd7eae3eb4a77155c8e6c92957978b.