Fix check for lists/tuples. Refs #6955