Handle short[], int[], long[], and bool[] types.