Revert "fix size_of_object forloop"

This reverts commit 60510d506499ea75bea7af704f1185e31fc4a159.