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

Fixes #2279. Stubs/declares __sizeof__ method to use nbytes attribute.