Moved the reserved words check into CodePrinter so all code printers can use it.