Create a deep copy of the original tree before conversion to lambda node Reviewed-by: mcimadamore, vromero