fix handling of offset in density function. **offset is not handled in the *cumulative* functions, and a serious bug may result if they are used **
Fix bugs in initialization of tree in calibrated prior