Correctly display boolean fields as checked

Previously, after setting a boolean field to true, the checked state
would not be displayed when opening the post for editing again.
Now it will be.