Allow vector repeat exprs in statics.

Fixes #8152.