use new dot_interpolate(foo, bar) instead of foo.replace('.', bar)

apply https://github.com/dimagi/commcare-hq/pull/1821 to the two other places it's done