Fix some points for Travis

- Import reduce function from the compatibility module.
- Add Constant as autoclass to the doc.