BUG: Raise TypeError when serializing 0d ndarray
Previously pandas ujson Segfault. see #9576 

This is an initial fix. I'll try to make sens out of ujson and see if 0d array can be handle in a better way. However, At the moment raising an exception is still better than a Segfault.
