cleanup syntax issues iwth new discreterange code on gcc