Synergizing In-context Learning with Hints for End-to-end Task-oriented Dialog Systems