Replaced pointers to vector. Refs #10013.
Cleaned the codes. Refs #10013.
Merge branch 'bugfix/10013_loadgss_coverity' into develop