Statistical causality, martingale problems and local uniqueness