base.rst: Update 'Combinatorics' documentation

- Use 'array' consistently, instead of a mixture of 'a', 'arr', 'array'.

- Correct example for collecting permutations