Implement some more array operations.