Add support for Ne, Any, and All

Fixes #37, fixes #38, fixes #40.