Fix type error in ol.layer.Vector