[idl] add copy constructor, assignment operator