Reworked how codegen walks through tree

Removed path matching and recursive crawling.
Also since the source miml files will eventually be auto generated
most of the checks in the validate stage can be removed, since
the C parser will catch them.