fix Issue 10302 - Package module conflicts with package name

If the source tree is as follows:

pkg/
+ package.d
+ common.d

A package module will be incorporated to the internal package tree in two ways: `import pkg;` and `import pkg.common;`.

Current code considers either only one of them will occur. If both case occurs at the same time, like as `import pkg; import pkg.common;`, pkg as a `Module` and pkg as a `Package` will conflict each other.

To solve the problem, I added two fields `isPkgMod` and `mod` in `Package` class.
Fix segfault case