arg_to_iter: replaced double call to isinstance with a single one. refs #248