runtime: wip: fixes to swig; more tests passing.