[core] Fix array.new with lifted functions