issue #996 json serialize of empty int numpy array fails + test