Add clip and mask to unoptimized transforms check
As cliped and mask items strore his transforms in an unoptimiced way, we inform by this way to the function
(cherry picked from commit 5fe3509e)
As cliped and mask items strore his transforms in an unoptimiced way, we inform by this way to the function
(cherry picked from commit 5fe3509e)