add dense ouput support

use matlab-like `refine` parameter