Add scanl for Vect.
Uncomment truncate.

Also modify some types to help with unification.
Merge pull request #1061 from sellout/master

Some lib changes.