Fixes some stuff in metrics tab
  Fixes some 500s after opaque-keys
  Adds a test which would have caught the 500s
  Fixes Transifex problem on the string % of students
Merge pull request #3871 from edx/dcadams/fix_metrics_tab_after_opaque_keys

Fixes some stuff for metrics tab