Fixed flashbag output in layout.html.twig

Since Symfony 2.1, messages are grouped by type. Added a second for-loop to iterate types.
fixes #978