Got the expandArray functionality working.