More currying in gen_heap.

1 job for master in 3 minutes and 57 seconds (queued for 1 second)