makeTypeRef for Lam and Record