Split the assignment to work around a bug in perl < 5.14

Assigning to a hash from a list with duplicates produced garbage results
in list context; this was fixed in perl.git in 45960564 (in 5.14.0).
Switch to using two separate statements to work around this bug.