Merge pull request #2149 from 9rnsr/fix10296

Issue 10296 - Nested template function call and purity inference bug
Rename + update existing test case
fix Issue 10302 - Package module conflicts with package name
Fix segfault case