ast: Reorder SetModuleTree and SetRuleTree stages to run earlier
ast: Reorder SetModuleTree and SetRuleTree stages to run earlier

These stages do not depend on any of the other stages except
ResolveRefs (which can pull in additional modules on the fly.) These
are needed for the new oracle feature so move them up in the compiler
to avoid unnecessary work.

Signed-off-by: Torin Sandall <933af5bec0bc58056526d55ca6c7b45fcf14cc48@gmail.com>

open-policy-agent/opa,tsandall/opa,tsandall/opa,open-policy-agent/opa,open-policy-agent/opa,open-policy-agent/opa,tsandall/opa,tsandall/opa,tsandall/opa,tsandall/opa,open-policy-agent/opa,open-policy-agent/opa