Bugfix and improvement

Bugfix: Ambiguous order by reference incorrecty identifed with aliased
expression containing column references(s) of the same name as resulting
column alias
Improved: Non-referenced select list columns indicated as redundant