expose copy constructor to swig as it doesn't add one otherwise