Remove default setting of noResolve flag

Fix #629. With this changes, there will no longer be an error report for self reference. However, the problem of self-reference is addressed in #748 pull request
resolveScriptReference is called one more time, later on, you will need to guard that as well. I would also change the name to tryResolveScriptReference