Make legendables() return hidden status of layer

This makes the layer status available along with the other information returned from `#legendables`.