Performance improvement for clamped vector load.

Now only checks necessary conditions in the case where stride
is a known const.

Also added correctness testing in test case.