Use 0/1 for hidden, since it's a smallint

Fixes #3092.