2d.layer.invalid-calls.beginLayer-restore

Raises exception on beginLayer() + restore().