JSON serializing empty np array patch