Adding weak equality checking for Lists and DottedLists.