Add dual vector/nonvector interface (#109)