fix memory leak when (un)pickling tinyarrays

Also fixes other memory leads. Previously, load_index_seq_as_long did
not correctly DECREF the new reference created by PySequence_Fast.

fixes #10
4 jobs for bugfix/pickle-memory-leak in 27 seconds (queued for 1 second)
Status Name Job ID Coverage
  Test
failed python2 #4189

00:00:18

passed python3 #4188

00:00:27

failed python2 #4172

00:00:08

failed python3 #4173

00:00:13

 
Name Stage Failure
failed
python2 Test There is an unknown failure, please try again
Cloning repository...
Cloning into '/builds/jbweston/tinyarray'...
Checking out 158fb875 as bugfix/pickle-memory-leak...
$ python2 setup.py build_ext -i
Traceback (most recent call last):
File "setup.py", line 18, in <module>
import configparser
ImportError: No module named configparser
ERROR: Build failed: exit code 1