make Vector::data and Matrix::data return null when empty, fixes #228, fixes #229