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

Fixes #3092.
Merge pull request #1448 from djmitche/bug3092

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