Error in data representation size set by raster canvas
The size of the MatrixData is smaller than the dot rectangle, since the canvas does currently not take the margins into consideration when calculating the required size of the MatrixData. This leads to IndexOutOfBounds for cases where the top or left margin are greater than the respective sums of constraints.
I think I know how to fix it.