Fix registration leak of NMATRIX struct in nm_init_new
Fix possible registration of uninitialized pointer
Merge pull request #11 from cjfuller/list_regression

List regression