Fixed bug in centerWhenLoaded that made it unable to accept a single
layer name as a string. Fixed bug in centerOnLayers that would cause
take into account layers that were marked for removal.