Compare values in TreeMap's 'lt' function

Closes #5194
auto merge of #7530 : alexcrichton/rust/issue-5194, r=thestinger

Closes #5194