Fixed not setting new index when switching toolbar
Fixed instance still being attached to mouse after toolbar is deactivated.
Fixed resetting selected object when toolbar is deactivated.
Fixed static object toolbar readding the callback functions each time it gets activated.
The static object toolbar now does not delete instances that belong to entities.