nbytes attribute for matrices.

Also include a test and fix some defective documentation.