Fixed return value of Polygon.contains

Polygon.contains was toggling the return value on each valid hit.
Merge pull request #1265 from Singularetantum/dev

Fixed return value of Polygon.contains