In AST compiler and ancillary modules, replace BatDynArrays by list references