[forms] Clean up cache handling
- Store
isAffine
information inShapeFunctionCache
in advance instead of passing it toinvalidate()
for each element. - Remove no longer needed argument from
invalidate()
method. - Hand the full cache to the local operator and let it determine the node-related entry on its own.
- Remove many now unused local variables.