fixed some crashes in sparse features unit tests
fixed a memory issue related to uninitialised memory which should be NULL
changed sparse matrix parameter registering
Merge pull request #1274 from karlnapf/develop

Fix segfaults in unit tests