Blaze dshape parser error checking

These changes primarily tighten up some of the error checking around blaze dshape creation, and fix some bugs found in the process.