Do not test Python 3.2, sphinx/jinja2 seems not to be compatible with it
Do some additional validation of preference names and update the
documentation.
Add tests and make the behaviour of __len__, __contains__ and __iter__
more consistent.