fixed operations andThenBool and orElseBool

fixing https://github.com/kframework/k/issues/1090

@dwightguth @andreistefanescu please review