Handle void data type

If a check is made that a given type is a typedef, and the type happens to be "void" a fatal assert resulted.
This pull request fixes this bug, which caused failures in release validation tests.
Please merge as soon as convenient.