[ticket/13036] Make the reference type configurable when generating a route

depends on https://github.com/phpbb/phpbb/pull/2921

[PHPBB3-13036](https://tracker.phpbb.com/browse/PHPBB3-13036)