Well, that was odd, because Serial.write obviously wouldn't even compile correctly, let alone fail when uploaded (since it wouldn't ever get that far!).
Changing that one line obviously solves the compiling error, and then it works as expected. <doh>
I'm really not sure what I was doing before, that compiled, uploaded, and then didn't work?!
Oh well, c'est la vie.