Fix equals(); more iterator optimization; docs/tests