Fixed PDBinaryReader bugs

* Bug where code wouldn't search correctly within one event only
* Some cleanup
* Added Unit tests for the case that would fail before but now works as expected