Remove const from the val ptr in dict allprefixed
Add fields to subdomains
Fix const warnings