fix regression in Mapper when `format:` was used in a `scope`.

Closes #10071

`#normalize_path!` depends on the options so we need to call
`#normalize_options!` first to make sure everything is set correctly.
Merge pull request #10072 from senny/10071_format_on_scope_block_is_ignored

fix regression in Mapper when `format:` was used in a `scope`.