Global Errors bug on ScalaForms and “Advanced Topics" consistency

This fixes #2498 and also fixes #2513.