Store syntax types as symbols in Record

So that memory footprint and the final summarization become faster.