BUGFIX: ensure that number of classes is always of type INT in Colormap

This PR is the solution for the following issue:

https://github.com/matplotlib/matplotlib/issues/2638