[[TRAVIS POKE]] fix($location): allow numeric location setter arguments

Dupe of #7161, with some amendments