Fixed matxd so it doesn't try to read more elements than it should, and then fixed vMAT_MATv5ReadOperation so it didn't throw an error at the end of the input stream anyway.
Added elementRemainingLength property to vMAT_MATv5ReadOperation; tracks how many bytes are left in the current top-level element.