Small fix in ListItem#by_type()