[Polygon] Check headers with clang static analyzer.
[Polygon] Fix issue #10033 (scale_down on rectangle does not compile with clang 5.1).
Merge branch 'master' into develop