Add collision detection for ioPoly

Also, shouldn't ioRect inherit from ioPoly?