This made me realize that the ledger has further responsibility beyond holding up half the weight of the narrow strip of sheetrock and cross studs. It also needs to keep the studded wall in place. This would lean me away from studding over the foam board. I'd want a pretty tight anchor connection, and I suspect that would not be good for the foam board. But I'd check with the manufacturer all the same.