LayerSwitcher doesnt switch layer entry correctly if Layer is not visible

map.moveTo() change the property layer.inRange without triggering event changelayer
Issue is new in version 2.13