Implement ARCHETYPE.parent_id as a String instead of ARCHETYPE_HRID. Since it's a String with only major version mandatory, and minor and path versions optional, finding the actual parent id needed in ARCH_CAT_ARCHETYPE is done by matching not just direct comparison in a Hash in ARCHETYPE_CATALOGUE.