Added colision detection for ioPoly

Also, shouldn't ioRect inherit from ioPoly?