Proper management of the router resource type

Fixes #289

Propagate the `router.type` to `app/cache/*/routing.yml` and set `router.type` to `yaml`.

This is a workaround while waiting for https://github.com/symfony/symfony/issues/11018