Emit error messages if identical typedef names are used.

Signed-off-by: Rami Ylimäki <rami.ylimaki@vincit.fi>