Fixed bugs in tpsd optimiser.  Primarily to do with optimising with pressure.  Also removed assert in niggliReduce that was causing problems.