Fixup set_variables/set_parameter handling, report errors