When i clone a shader, code seems to be looking for element, while a regular compile looks for indices, etc.
For now, i am using modified code. Will appreciate if this bug is fixed.
Btw, excellent work. If my work becomes relevant, will definitely send a reference for your listing :)