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.


Rather than adding these to the testcase about member functions, let's create a new one for the macros. Then you won't have to change the old test cases which logically should not be affected by the new functionality you added.