Better retrieval of all registered post types, Hierarchy build fix