Auto-resolving of typedef's