Refactor to add objects to the heap in parseFile.
Refactor to add objects to the heap in parseFile.

This makes it possible to re-use functions for parsing heap objects when
they aren't going to be added to the heap.

csfrancis/harb