Fixed a few bugs.

One in the tests, one that prevented None to be accepted when
explicitly listed in the type, and one in the checking of dictionary
types.
Changed the parsing of the pydoc.

Better parsing for types including a ':'.
Fixed tests and added a test for type parsing.