Doesn't this imply that if a company is spending more than 12% of its workforce-related costs on perks and other happiness-inducing stuff, then it could save money by cutting all that and hiring 12% more workers?
Not necessarily. For it to be true you would need to make the following assumptions:
1) Perks-related expenditure have a linear effect on happiness
2) Productivity is a linear function of the number of workers
3) The caliber of the 12% additional workers you'd hire after cutting costs is comparable to those of the workers you had before
4) Happiness only affects productivity, but not retention (turnover costs companies a lot of money in lost productivity)
5) There are no positive externalities caused by the presence of happy employees
1), 3) and 4) are debatable -- in many cases, the ability to make employees happy (and thus attract/retain strong performers) depends on the company culture, and having perks is an important part of it. This also means there are probably a lot of relatively cheap and cost-effective perks an employer can provide that can make employees much happier (fun company offsites, flexible hours, etc.).
2) is somewhat true for some industries, but tends to be false for knowledge workers like in the tech industry, where what you want is better quality output as opposed to simply more output. Also relevant is Brook's law ("adding manpower to a late software project makes it later"). Teams do not scale up linearly because it requires additional training, management overhead, and makes communication and coordination a bit more complex.
All these are fairly straightforward, but I think 5) would be interesting to investigate: from my experience happiness and enthusiasm tends to be contagious, and it's probably a good thing for a company to try to get a core of really motivated employees that can inspire others.