Allow parent and other tags to work correctly nested in other tags. Fixes gh-331
cleanup unused variables
Merge branch 'master' of github.com:paularmstrong/swig