Add direct query capability for macros/typedefs. Fixes bug 1033677.

This commit fixes the bug : https://bugzilla.mozilla.org/show_bug.cgi?id=1033677. Thanks.


We should also have a test that makes sure case-sensitive matches take precedence over case-insensitive ones.