Recursive list fix

Checks for an object of the same type or list of objects of the same type