Add more tests
Make simpleBuilder general, remove boilerplate
Add tests for genTopLevelFunc*
Merge pull request #4 from ofan/swig

Generalize simpleBuilder, add tests for genTopLevelFunc*