fixed operations andThenBool and orElseBool
Merge pull request #1091 from yilongli/fixing-issue-1090

fixed operations andThenBool and orElseBool