Trim all layer animations to the master composition's duration.
Support nested compositions that extend beyond the end of the main composition, or before time 0.  Flip rotations on nested compositions that have negative scale applied.