Fixed bug with TypedList example

Fixes TypedList example that was failing in /doc/library/typed_list.txt. Also added unit tests for the 2 TypedLists example to prevent this in the future.

Issue was raised on mailing list : https://groups.google.com/forum/#!topic/theano-users/orib7a6ew-A
This isn't good. this return ndim to be the internal ndim, but the list add an extra. Do you need this? If no, just remove it.