2d.layer.transferToImageBitmap

Check that calling transferToImageBitmap in a layer throws an exception.