pml: fix memory management (custom OR private copy ctor if the struct owns pointers)