fix shape for region refs
Fix 32/64 bit issue in test
Merge pull request #340 from andrewcollette/reference_shape

Preserve shape for simple region reference selections