vapi: add support for defaults in typedefs