fixed many more unit test segfaults and non-passes. Mostly uninitialised memory, wrong get_name, wrong generic type
Merge pull request #1276 from karlnapf/develop

fixed many more unit test segfaults and non-passes.