fix Type.copy_expr (was using undefined evaluation order leading to faulty Not_found exceptions)