Fix a bug involving uninitialized memory
In the bounding mask calculation, the bounding box is increased when the size would not be even. The bounding mask values should cover the entire bounding box, but when the bounding box is increased like that, it wouldn't set the values that the increase in size include. I've also adapted the test so it includes testing this.
Edited by Andre Offringa