Low: libpe_status: use new ID generation functions
Ensures values are sanitized, and fixes a memory leak