Avoid ambiguity in sorting of parameter preparation in mapping method

In some Ruby implementations (MRI), Enumberable#sort_by does not use a stable
sort, whereas in others (JRuby, Rubinius), it does. To avoid differences in
generated methods, this change extends the value to sort by to ensure all values
are different.