convert to int-array before using numpy.bincount
 - this fixes a problem with 32bit numpy installations