Refactored template parameter storage design..fixed massive ufcs issues.