cleanup of NOM: fix capitalization, make stateless methods static

git-svn-id: https://roadrunnerlib.googlecode.com/svn/branches/refactor_modelgen@908 c0027639-9190-0b57-01eb-f09a03790dae
fixed memory leaks in libstruct

git-svn-id: https://roadrunnerlib.googlecode.com/svn/branches/refactor_modelgen@909 c0027639-9190-0b57-01eb-f09a03790dae
fixed more memory leaks with global vars

git-svn-id: https://roadrunnerlib.googlecode.com/svn/branches/refactor_modelgen@910 c0027639-9190-0b57-01eb-f09a03790dae