ZoomSlider example is broken

The zoom slider does not change the zoom. The console reveals various TypeErrors in lines like:
```javascript
map.getView().getView2D().zoomWithoutConstraints(map, res);
```
This is probably due to #520.