Revised struct to class as struct causes failure in SWIG