fixed __len__ and added tests
Merge branch 'master' of github.com:dhaigh/Logic.py