Added attributes support to ``get_item``.

Fixes #1643 & #1877

Review please? @danielgtaylor