librustc: Allow vector repeat exprs in statics.
Add test for repeat expr in statics.
auto merge of #8483 : luqmana/rust/rexprs, r=catamorphism

Fixes #8152.