Convert Heap type to record syntax. Add hMaxSize field in preparation for adding garbage collection.