Create config object
Use global parser config object
Improve invalid type fixing; move type fixing to type parser