Added calchash and compare_same_type for symmetries. Necessary for archiving.