Removing unnecessary checks in Matrix::Buffer and Matrix::LockedBuffer