[FrameworkBundle] add test for #5135 and simplify routing container parameter resolution

1. [FrameworkBundle] added working test case for issue #5135
2. [FrameworkBundle] fix routing container parameter exception message which did not really make sense and improve regex performance