[feature] add ptr argument to layout duplicate method

8 jobs for layout_dup_ptr in 4 minutes and 39 seconds (queued for 2 seconds)