Update to newest tern to pick up some bugfixes