fixes wrong types for iterator related methods (closes #33)