Generate code for string/char/boolean ast nodes

This is to fix MAGN-821: n2c code crashes dynamo. 

The related pull request in Dynamo: https://github.com/ikeough/Dynamo/pull/803