Move nextVarId to the local r
Add tests for multiple require
Fix backtrace for r.json
Typo