I don't understand the question about intention to leave canada after getting the passport ? Even if the answer is yes ... is it something they can deny the citizenship because of ?
They can't deny the grant of citizenship of course, now that the law has changed. They are most likely trying to get a reaction from you, in order to see if you're telling the truth about this question, and other stuff they ask you. There's a chance the officer has not been trained properly with the new rules, but that's highly unlikely... It could also be the officer is jealous you finally get to leave after getting the passport
In job interviews, some people recite/memorize their answers beforehand to common questions, and the interviewers don't want that, so they ask uncomfortable/unexpected questions to throw you off... CIC officers are doing the same sometimes. I wouldn't consider this tactic insulting, offensive or even unfriendly. It's just one of the ways to get wanted info.