A dependent nominal type theory (Logical Methods in Computer Science, 2012)