Fix bad sourcemap offsets on escapes in dict keys

Just a squashed version of #303