compiler. Prevent duplicate definitions in a package, fixed #347.