invalidate constant cache if included module has constants
add test
Merge pull request #795 from charliesome/invalidate-constant-cache-if-included-module-has-constants

Invalidate constant cache if included module has constants