#339: do not allow non-hashref parameter sets and check for them more carefully