Fix #2053 use attributeParts for compound attributes + small fixes