bugfixes for object removal & addition

fixes for bugs that would occur when objects were removed and added back to the OpenRave environment