Fixed typechecking. Apparantly it only happened with boolean selectboxes.
Removed not open for extension codesmell.
Fixed a bug in PHP boolean type evaluation