PDI-10641 correctly handle row execution

* clean up cached results of execution when each row is passed to row executor
* refactor the code to allow unit testing
+ add unit test
Merge pull request #60 from askdzmitry/PDI-10641

PDI-10641 correctly handle row execution