fixed a few infinite loops caused by not registering type qualifiers,
fixed a reaally awkward case where types aren't previously defined and
only compiles because files are compiled together, fixed crashes on
accepting function pointers as parameters