Also take aliases into account in diff analysis.