Fix a bug with gram.GetSISuffix() not returning the correct string.
Fix some warning and discover some bugs that need to be fix.