Implement material attribute hashcode
Merge pull request #1975 from xoppa/various

Implement material attribute hashcode