ENH: add BagObj.__dir__ to numpy.lib.npyio

This allows dir(bagobj), and also enables tab-completion on a BagObj,
which can be useful in an interpreter or IPython
TEST: added test of BagObj
Merge pull request #5291 from wackywendell/bagobj

ENH: add BagObj.__dir__ to numpy.lib.npyio