Definitely seemed as if it was scripted with another actor in mind, what annoyed me was the lunatic ramblings at and to the child with arms flapping and saying stupid stuff, things like Do you have a name and other stuff that maybe an alien who had only been in contact with earth for all of 10 seconds might say, but the Doctor is as good as a human, so why does he act like he has no idea.
I am now seeing why Capaldi has stated a number of times in interviews that his version of the Doctor is not yet finalised and "he" has some work to do on it, or in otherwords, he hated some of the ways he had to act but had to get on with it, but the second series he plays the Doctor will be hopefully finally removing the last traces of running around , saying stupid stuff and will be more mature and serious.