Range checking for vector parameters

Comprehensive range (and length) checking for vector parameters (closes #3988).