Update to latest tern and acorn