py: Improve __bool__ and __len__ dispatch; add slots for them.