rename end to end_(reference to 'end' is ambiguous in llvm)
core.Engine: fix memory leaks
Merge pull request #2 from mckelvin/fix_memory_leaks

core::Engine: Fix memory leaks, misc