FIX: Use scope name when serializing UserApiKeys (PR #10871)

This issue was introduced in 1ba9b34b034c2a27c9e04f430eefbccae5942bcf, when the scopes were changed from an array of strings to a dedicated table

Screenshot 2020-10-08 at 17 53 25

I intend to switch this to use a proper activerecord serializer for UserApiKeys, so this fix should be considered a short-term solution.