hide some fields from the layer metadata, fixes #1850