fixup deprecation of externalAttributes

- directly access private member internally
- only deprecate the property
add @safe pure nothrow
Merge pull request #1774 from MartinNowak/std_zip2

fixup deprecation of externalAttributes