Apply node, improved handling of nested lists in engine