Changed boolean handling

closes #2638
- replaced format() with parse() to convert values when fetched
- changed validation from integer to boolean
- added checks to tests
Merge pull request #2651 from sebgie/issue#2638

Changed boolean handling