Making sure not to include a subtype if there is none.
Making sure to only show up to the max amount.
Made the functions to convert nodes back and forth generic. Now the nodes will show up as nodes in the console for both JS and RB.