Fix ss handling of unitary metrics in coffeescript

Messy for loop but whatever.  Fixes #3002