Made the flow of Restructure more obvious.
Hacky way to make ResolveIdentities handle errors properly...
Added additional node information to exceptions.
Added the function call error and corrected the existing exceptions.