Hi bbastien!
I stumbled upon the same issue when creating a render pass system.
Even though there is not much i could find on the internet, there IS a way to do it
(see attached screenshot)
setting params on materials layers just have a different access, i found that using a parameter info node works just fine