CXX-196 CXX-155 Force construction of bool to deal with explicit operator bool on streams

(cherry picked from commit 9f28c088968e920625cb84b00362d8f7398f486c)