add vector shape checking
Add shape consistency checking for persistent vector creation
Improve docs and handling of array construction
Apply validation for consistent shape during matrix construction