More fixes

- Regexps with global modifiers must return their lastIndex of search to
0.

- Now both parsing and dependency searching will write errors to the
console log.

- Sometimes type property access of Esprima's nodes was producing an
exception because its object was undefined/null (this behavior is
correct!). Now the analyzer pays attention to this situation and avoids
the error.

- Now $import.modules statements are parsed and analyzed.

There's still some issue. Dependencies on class members aren't still
detected as expected...