Add subarray methods for primitive types Change subarray for Objects to return same type as input from Ashwin S