Add static selector and keypath check macros