Rules accept a d= for matching against

Summary: Fixes T4

Test Plan: run tests

Maniphest Tasks: T4

Differential Revision: http://code.peteftw.com/D4