CodeGenCalculation.m: Allow gridfunctions to be either symbols or strings

This allows gridfunctions with underscores to be understood by assignLocalFunction
Kranc.mt: Add test case for grid function with underscore
CodeGenKranc.m: Add error checking to several functions
Kranc.mt: Add assignment to GF with underscore to test case