Perf fixes and consistency changes to libparserutils