make common compute the result type of map with references