a bit more on polygon
adding support and pathOrderOptimizer and fixes

Made intpoint helper uses extension methods.