factory methods for GPArray