Optimize node copying (#13640)

Do not copy immutable data in nodes unnecessarily.

Change-Id: I441e4d932cac8a4f530c8a67da2ffd97cdad405c