codegen: merge emit_unionload into typed_load
Add optional ptindex and tbaa_ptindex parameters to typed_load to enable
consolidated union type handling. When ptindex is provided for a union
type, typed_load now handles loading the data.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>