Refs #8519 Fixed warnings and CppCheck errors

Addressed all the Gcc warnings and CppCheck errors i'd introduced in #8509
Merge branch 'feature/8519_LoadAscii_compiler_warnings' into develop