Change array types naming convention from typearray to {array, type}