Fix behaviour on Boolean value

Fixes #1082 
@timowest Does the schema export always generate this as a raw type?