Bug 867820 - Box boolean inputs to double comparisons when a double conversion isn't possible, r=jandem.