fixed handling of improper lists in language productions