A Behavioral Model of Bargaining with Endogenous Types