2. The case argued was that the tax deal was illegal when it was agreed upon and therefore void. Sweetheart deals / government aid is generally illegal in the EU, and neither Google nor Ireland should have been surprised.
3. Do you have any examples of the ECJ changing interpretation on a whim? I do see that Google lacks legal certainty, but when you're as unique as Google is, lack of precedent comes with the territory. That said, Google is walking up to the red line of its own volition. There's a limit to how surprised they can credibly act when they find they have overstepped it.