Add identity-matrix stub and protocol
diagonal and identity matrix stubs
Add general element count function
typo fix
Fix up default diagonal matrix constructor