Adapted extended grammar to include a new type: date.

Error messages now event based instead of list aggregated.
Made types extensible; it is working atm but maybe not OK in the way it is done.