Modifying Cons.__len__ to handle circular and dotted lists