Fixes some memory management issues
Merge branch 'refactor' of https://github.com/standage/AEGeAn into refactor