A bidirectional type checker for intensional intuitionistic type theory