Fixes density() in AbstractCompressedMatrix/CompressedVector

Fixes issue #53.