I think I have run into it not long ago. This should fix it.

Another bug? Arbitrary rotation messes up vector rectangles.
Looks like the rectangles turn the other way?
I'm not quite sure what's going on but the results were... Not right. Polygons, curvy shapes, and lines worked right but rectangles went the wrong way. Ovals seem to be fine too.
Demonstration:
https://www.dropbox.com/s/in7wnbyt4rfvebk/wut.rli?dl=0