Add initial unit tests for VirtualArray
Fix a couple of issues in VirtualArray
REBASEME: Fix offset issues in partition()