Report circular type inference errors with -noImplicitAny

Fixes #476.