Remove unnecessary typecasts

goog.asserts.assertInstanceof is sufficient for the compiler to deduce
the type.
Use @inheritDoc in ol.render.webgl.Immediate
Use a switch statement, rather than ifs, in ol.render.canvas.Replay
Merge pull request #1522 from twpayne/vector-api-clean-ups

[vector-api] Miscellaneous clean-ups