Add various Length methods
Add basic tests for singular matrix, vector and string types