UniMASK: Unified Inference in Sequential Decision Problems