TST: fix spare_array to put up correct type exceptions rather than Exception
CLN: cleanups
BUG: fix stata dtype inference (error in core/internals/astype)