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

PHPBB3-13036
[ticket/13036] Add unit tests

PHPBB3-13036
[ticket/13036] Complete tests

PHPBB3-13036
Merge pull request #2922 from Nicofuma/ticket/13036

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