Fix regression by previous commit

An include can now have the USES_DECLARATION and USES_REFERENCE bit set. Use mask instead of direct comparison.