Zend\Db\Resultset fix buffering

fix buffering
optimize some methods