FYI, it works for `ol.layer.Layer` but not for (at least) `ol.layer.TileLayer`.
See `build/src/external/src/exports.js`: the option object passed to the constructor is limited to `ol.layer.TileLayerOptions`:

```javascript
arg = {
      brightness: options.brightness,
      contrast: options.contrast,
      hue: options.hue,
      opacity: options.opacity,
      preload: options.preload,
      saturation: options.saturation,
      source: options.source,
      visible: options.visible
};
// ...
goog.base(this, arg);
```