Straighten out typedef checking