Adds option for including global constants in specific modules

I came across a situation in which I needed to add global constants to multiple modules for different applications. In order to address that, I've added a new option for `includeGlobalConstants` that can be set at the module level to override the default of only including global constants to the first listed module. I've added two tests to verify and I believe this shouldn't introduce any breaking changes.