I played around with it for a while.
The shader is not visible for me when I apply it to both blocks with ent_mtlset, it works fine when setting the material for both as my.material and if I do it as you had it, the shader works on both blocks but vecAmbient is different.
I am not sure because I may missed something important, but I´d say that this is a bug..