With https://github.com/openlayers/ol3/pull/934 you could also set an "id" in the layer options and use `layer.get('id') == 'vector'` in the filter function. This could make an example of setting custom properties in layers. Again, super minor.