Fixed missing MEMORY case in compare_object() and object_equal()