Fix type functions section not working.
Add storage of relations.
Add string interpolation for messages.
Add generation for type function definitions.