Fixes issue #3349, prints deprecation warning

This patch fixes issue #3349, by prints deprecation warning for
users who depends on old(<1.7.0) implicit module registration.
Improved coding convention and messages.
Merge pull request #3386 from blmarket/deprecate_warning

Fixes issue #3349, prints deprecation warning