GraphicLayerSwitcher: fix gjslint errors/warnings