Fixed identifier while _d problem.
Fixed empty lits problem.
Handle empty list
Prefer tuple to seq with size of 1.