Fix ss handling of unitary metrics in coffeescript
Fix ss handling of unitary metrics in coffeescript

Messy for loop but whatever.  Fixes #3002

databrary/databrary,databrary/databrary,databrary/databrary,databrary/databrary