Convert kwargs to tidy ID list prior to iteration.