Raise error if `fields` on serializer is not a list of strings.

Refs #2193