Added check that a decoded boolean value has either the value 0 or the value 1.
Added check that a decoded boolean value has either the value 0 or the value 1.

   JAVA-1864

kay-kim/mongo-java-driver,jsonking/mongo-java-driver,jyemin/mongo-java-driver,PSCGroup/mongo-java-driver,jyemin/mongo-java-driver,rozza/mongo-java-driver,jsonking/mongo-java-driver,rozza/mongo-java-driver