Fixes for using libtopology functionality via SWIG.