Add bencmarking stuff.

Add implementation for __ne__ (you should always do this when implementing __eq__, apparently).

Make type checking easier to read.