Initialize properties in the constructor

This PR initializes the styleFunction_ property in the ol.layer.Vector constructor.