Fix assert when instantiating a default argument of a template defined in a
module.