Range checking for vector parameters (#3988)