Htg source fixes
Fix-up !11345 (merged)
- Fix return error codes causing a segfault
- Fix parsing descriptors with one level
- Improve testing, cover more cases
- Reset current process counter on every new run
Edited by Louis Gombert
Fix-up !11345 (merged)