Core/Movement: Do not remove movement flags that have special opcodes associated with them on teleport

Closes #10162