Bond investors are accepting the smallest compensation in years in return for taking default risk, as a potent combination of economic optimism and too much cash chasing too few securities skews costs.