Rle now has to be imported from S4Vectors, not IRanges
fix dimension checking in countmat function