Split resolveCycles(bool AllowTemps) into two interfaces and document