backport AgaviBooleanValidator from 9d969e922b2248e0fce981449bfe8ff28fada202...f544353f38e4daa1aa3406dc3991c5edc74c086c (from master), refs #1196