use size_t instead of long in Array

1. use `size_t` instead of `long` in Array API
2. remove unneeded spaces
3. add spaces before and after binary operation, such as `+`