Hey! This is something I'm planning to support officially as soon as I can, but for now there's no one-line fix that would work for all layer types.
Could you explain your exact use case? I might be able to help you get around this.