Fix and use thread.collect for GC
Also merge appchan's JSON option fixes