exploratory work on successor to stan::agrad