pub fn external_and_ref_memories_names(comp: &Component) -> Vec<String>