Adapt PArray instance generation to new scheme