Compare lengths in attributes with multiple values properly.