fix passing the location of uninitialized iterators in Lazy Referencing functions
correct the readability of conditions and tests related to lazy referencing