syntax/parse: add "expected more terms" message

Only for proper list patterns; otherwise, "more terms" might be
mischaracterization.
fixed hash-code for id-tables

Closes PR 13942.
keep testing line numbers when compiled