Re: move type changes, this is how the games work from Gen 5 to present:
- set the move type to its type in the move data, and allow this value to be overwritten ONCE
- check Electrify, which overwrites the move type with Electric
- check every other move type change event handler that exists (except Ion Deluge) (move events always run before Ability events), overwriting the move type only if Electrify didn't already change it
- again, allow the move type to be overwritten ONCE
- check Ion Deluge, which overwrites the move type with Electric if it's Normal
All of this explains what I observed in Gen 5, and Gen 6, and Gen 7 after the games actually released, etc; I just wrote about it in the order that it made sense logically, with no knowledge of these event flow shenanigans. This is why in my post you linked I specified that Pixilate/whatever couldn't change Chilan Berry Natural Gift's Normal type, but Ion Deluge could.
There are zero differences in the order of the event flow described above between Gen 5 and Gen 9. So in reality Electrify happens first, and Normalize happens after Hidden Power/Judgment/Natural Gift/whatever other move. But it doesn't matter what happens after because the type already changed and further event calls other than Ion Deluge are simply locked out from changing a move's type again.
I am so tired of being gaslit by Bulbapedia to re-research things I tested firsthand... Someone very clearly read my descriptions for Pixilate-like effects "This effect comes after other effects that change a move's type, but before Ion Deluge and Electrify's effects." and without testing it themselves or understanding the sentence whatsoever, wrote "overrides Ion Deluge and Electrify" on all the Bulbapedia pages, which obviously completely changes the meaning. Bulbapedia is not reliable for battle mechanics, and nobody should be reading it, or linking it in research or bug reports, or attempting to implement anything written there unless it's been independently verified by someone on Smogon.