Added check on reference count to keep total count correct.
Added check on reference count to keep total count correct.

teoliphant/numpy-refactor,teoliphant/numpy-refactor,teoliphant/numpy-refactor,teoliphant/numpy-refactor,teoliphant/numpy-refactor