Are the arrays defined in the same file as they are used? Create a minimalistic example exhibiting the problem (and having also the non-problematic example). and show it all.
You may also try Cosmic support/forum, I don't think there is much experience with it here.