Fix score-range-to-hash for Lua 5.1