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.