Implemented function to create subarray reference for STArray and QSTArray