canvas-animation: Simplify Object2D setting/restoring of canvas attributes.