Make setValues behave like multiple calls to set

See #1672 for discussion.