Fix bugs related to lists and list operators.