title: Why is type or ref required for layer in mapbox-gl-js
body: <p>mapbox-gl-js throws an error if a layer does not have a type. However, type is optional in the spec, and ref is not mentioned in the spec (was apparently taken out at some point). Can somebody clarify this? Should type be required then for the layer in the spec? Or something else?</p>