added parameter vector in invocation of event_pos in sundials backend