Ensure correct reset of deterministic hierarchy context values
Improved logging of PublicKey fields
Adjusted logic of exploring the deterministic hierarchy to avoid "double child"