Added stuff to setObjects(...) in EntityManager

Now updates "UIDcurrent" to the new value based on the loaded objects
variable.