Optimize defined &foo and exists &foo

If &foo exists at compile time, then optimize these ops out.