Fixed template compatibility with rosetta >= 0.6.5.

Rosetta 0.6.5 renamed the template variable from ``messages`` to ``rosetta_messages``. Backported the change here.