[enh][compiler][interpreter] transfer arrays to functions

* TODO: Buffer Overflow detection