Raise an error if an action doesn't have a string type

Happens with e.g. "command: true" that YAML helpfully converts to a
bool.