Fixed major issue with GC getting confused by chunks having references to neighbouring chunks. Lots of code cleanup.