Correctly compare BooleanType values other than 0 and 1

Patch by Sylvain Lebresne, reviewed by Tyler Hobbs for CASSANDRA-6779