Extend matrix_form() for sparse matrices.
Fixed binary operations between sparse and number.