#complete_const: test and fix the case when the containing module is known