Fix Null Pointer Exceptions, #389, 394, Import Decl

Fix issue with this code
```go
import (
    r
)

func main(){
  r.SomeSymbol //NullPointerException
}
```

and the tests