make it possible to set the compiled route

After the madness of https://github.com/symfony/symfony/pull/12012 let's try to make it at least doable for other people. It is still a mess as you have to reimplement serialize() in a really hacky way and what not.