[liValue] fix dereference after NULL check
[idlist] fix bad shift operations