Make NPatchData always use shared pointer