Decl printing: add tests for typedefs

Patch by Konrad Kleine.