Add error for usage of undefined data types.

Signed-off-by: Michael Buesch <m@bues.ch>