Do getValue() of Boolean objects before comparing them

Closes #268.
Merge pull request #271 from kparaju/master

Do getValue() of Boolean objects before comparing them