Fix a bug in the Proxy API for tokens that have no mask, and override __...

...nonzero__ for the KeyMask class for ease of use.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>