PR21173: Improve type resolution. * elaborate.cxx (const_folder::visit_binary): Replace the initial type resolution pass with setting types (and remembering the new types so that they will get resolved later). (setup_semantic_pass_types): New function. (semantic_pass_types_resolved): Ditto. (semantic_pass_types): Use a global type resolution info, so that we can remember const_folder::visit_binary type setting.