compiler: add native_array_get and native_array_set