PHOENIX-126 Use of BOOLEAN in index and/or group by causes exception (JamesTaylor)