More tests and fix parser
Fix GC on closures when applying nested functions