Add typecasts so examples compile
Correct types in ol.layer.Group