Alternative fix for #524: Discover all module-level numeric constants.

- module type are created automatically if no declaration is found
- numeric global values in modules are typed automatically and are treated as constants.
Shouldn't there be a comment in the docs about this?