translations broken when attributes is array

fixes #688, sometimes the attributes object comes over as an array, we
need to check for that