Temporarly suppress diagnostics at mod registration (thanks Vasil)

Diagnostics is suppressed when parsing the payload code for the
module during module registration.
This is done to avoid printouts of warnings at runtime due to
particular constructs in the headers.
It must be noted that these warnings are seen twice by the users,
1) at dictionary creation time
2) at dictionary compilation time