Updated equals checks with RTTI
Accounts for iterators as pointers.
Updated with RTTI