Fixing bug in automatic validation of boolean strings to bool type