core/expression: fixed ast.Name creation for named constants