Set kind of literal nodes as resExpr

This fixes #1427.