Sum up the test results when there are parametrized tests in bundle.

Fixes bug 587 (https://bugs.linaro.org/show_bug.cgi?id=587).
Also includes small fix for 'toggle legend' positioning.

Change-Id: I8081a6787b7029f35ff3feedb5f61df2f0444c22
Merge branch 'master' into staging