Fix some cases where zoomToShowLayer wouldn't work. Fixes #286 #228 #203