Made required ending braces a part of the parsing rules

This basically reverts the check in assign made in ef397ad9ba405e9c03b916801bea200444991382
as it turned out there were a lot of similar issues. Lemon will now
simply reject everything that is supposed to end with a '}'.