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


[PHPBB3-13036](https://tracker.phpbb.com/browse/PHPBB3-13036)