added correctness test to clamped vector load
fixed bounds checking bug in clamped vector load