Fixed inaccuracy of RegionQuad.getElements

No longer returns only unique elements
Added IntersectsSameRectangle test for Rectangle