read: check scalar rank
1d-7d arrays were already checked for matching shape on read. Inadvertently, we did not check scalars, so if one read an array dataset into a scalar memory variable, segfaults could result.
We did already check 0d..7d on write.
Hence, we add 0d read shape checks (dataset vs. memory variable).