Improved boolean value recognition

Improved boolean type