Add support for reflecting the hidden attribute

Part of #468