backport AgaviBooleanValidator from fb10fb20a9305204b797bd6b2eeea765fcc571c0 to 95828cbe3aed6146ea49300f4a9b56bf5379a2aa (from master), refs #1107