Fix hash ordering bug tickled by perl 5.18.0