Make RI matrix use bool as an element type.