Make rewriteCtFlavor lazy in the coercion for Derived evidence
I think I accidentally introduced this bug a month ago when refactoring. It's a bit non-obvious, but since Derived constraints have no evidence, we mustn't be strict in it. Now there's a big comment to prevent this bug happening again. This fixes Trac #7384.
Showing with 37 additions and 29 deletions