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