added IndexReferenceInfo to hav a notion if index columns

and forbid match on dynamic references
update changes
Merge pull request #1046 from crate/m/match_fix

M/match fix