Snap to rotated objects works incorrectly

Snap-to-object works incorrectly on objects, which have been rotated.

Steps to reproduce:

  • create a long, thin area element
  • see how and arrow would correctly snap to it when mouse over'ed
  • rotate the area
  • see how the snap positions are now invalid (as if the area wasn't rotated)