Add fail_compilation test for bug 2962
Adjust insertion target of the instantiated template
Move 4481 test from compilable to runnable in order to check the generated code
fix Issue 10086 - ICE(glue.c) or wrong code on passing variable as template value parameter
fix Issue 10857 - ICE(glue.c,　bugzilla 2962?) or compiles, depending on the files order
Merge pull request #2485 from 9rnsr/fix10857

Issue 10086 & 10857 - Adjust instantiated template process order, and fix ICE in glue.c