Rewrite all non-empty array statements to [...] in lang package