made TopResidualDebug output for scalar variables more readable (and code cleaner)
added tests for inclusion of scalar variables into TopResdiualDebugOutput