Fix memory corruption from instance_deactivate_object(), and simplify instance_deactivated_list.
Merge pull request #874 from sorlok/instance_deact_fix

Fix memory corruption from instance_deactivate_object()