Second attempt to fix the template in 2.5.1
Well. A RocketTheme template with the Gantry framework proves too much for the SP upgrade migrate-template option so it is time for plan B.
Plan B is: install the original RocketTheme template in the joomla 1.6+ compatible version, then replace images, css files and settings back to my changed layout.