Cache graphics bounds instead of iterating over all contained paths over and over again

For embedded shapes, this already was the case, but for AS3-drawn ones, we only cached bounds on the path level
Merge pull request #969 from tschneidereit/master

Cache graphics bounds instead of iterating over all contained paths over and over again