Fixing `array.percents()` for optional custom `total`

- Fixing `array.percents()` for optional custom `total`
- Updating docs