Revert "Finish garbage-collector (memory)"

This reverts commit 0d5ae1504da0b185bf8c015940568850b2491c2a, reversing
changes made to 6a6142c4b5758b960325628310ebff6e11eb4663.