ENH: Implement sys.getsizeof(x) for arrays and scalars.

Fixes #2279.  The ``__sizeof__`` method uses the nbytes attribute on the same object.