intensity_filter: limit intensities to avoid int overflow in cur_bucket

closes #8