Start rewrite of code to use initialization methods on nodes
[REFACTOR] Clean up most of the nodes to get their types only once in the init() function and also optimize a few other things to fail early
[FIX] Fix everything left that was broken from the refactoring