fixed typedef id bug; added typedef basic test
added support for typedefs return types/args; added corresponding tests