[Sumfact] Do not create code for sumfactorization nodes that will not be used
Sometimes not all sum factorization nodes found in an expression will be used (eg. if gradient(v) is multiplied with a normal vector in x-direction). We already ignore unwanted nodes for the test functions. For the ansatz functions we generate the sum fact kernels even if they are not used. This should be changed.