I've tested this with SOME of the current samples.
The difference is that in my code layer bounds do not include {0,0} point, it just perfectly fits the content, helping us to perform transforms correctly.

You can clearly see the difference with the introduced debug option OUTLINE_SHAPES enabled.