=tes #15808 infinity handling and freeze locate to use "."

// backport of https://github.com/akka/akka/pull/15810 (with pulling in the infinity support from the master branch right away)
could you make the match exhaustive (sealed?), otherwise some kind of other case fallback