Fix key for ranges in canonicalization
Fix key for ranges in canonicalization

Now the code should work correctly with different ranges with identical
label but different bounds, although this is warned as a bad practice.

tschijnmo/drudge,tschijnmo/drudge,tschijnmo/drudge