Don't assume value 1 is boolean, use the pods-boolean class

3.0-unstable version of #2397