Let inc() accept arrays.