When scanning or relocating, check replacements.

Just to make sure we don't wrongly detect the length or unresolve a var
wrong etc.
Properly respect resolveReplacements.

And use the same opcode reading func in armjit as x86jit.
Fixes Star Ocean on Android.
Don't need this flag, it read from memory.
Merge pull request #6407 from unknownbrackets/replace-funcs

Fix function replacement hooks on arm