Use array for sparse matrix construction, fix constant check

-Replace the numpy array construction of data,indicies, and inptr
with regular arrays.
-loop over all output columns when checking for the prescence of
the user provided constant.