Add 1/0 as valid options for boolean

fixes #332