Unless the lack of sleep is really getting to me and I am overlooking something ridiculous, I think this code is okay and should be printing "1", "2", "3", "4". Instead, it prints, "1", "3", "3", "4."
If they aren't supported, I can simply simulate 2D array with a 1-dimensional one with 4 elements, for instance, but I want to make sure.