Tackling the EntityList slowness (#3917)
Fix #3921: Crash when loading a new map with non-empty entity selection

EntityInspector is now using weak references.