Creates an instance of an array and returns it as a ComArray instance.