Frees the datatypes used.