Store tensor base classes in materials - bug fix (#3472)