Simplify node logic
start working through memory bugs
fix a clang warning
fix compiler warning
Unify character casts, reorganize checks
Pre-asserts to ensure no overflow happens
Merge pull request #243 from JayXon/simplify_node_logic

Simplify node logic
Merge pull request #244 from Dmitry-Me/unifyCharacterCasts

Unify character casts, reorganize checks
Merge pull request #245 from Dmitry-Me/ensureCapacityPreAsserts

Pre-asserts to ensure no overflow happens
Move variable declaration closer to where it's needed
Move the check into dependent call
Merge pull request #246 from Dmitry-Me/moveVariableDeclaration

Move variable declaration closer to where it's needed
Merge pull request #247 from Dmitry-Me/combineCheckWithDependentCall

Move the check into dependent call