Tvector bug 141

This PR will mainly fix a bug in the Python implementation of <type>_vector which failed when given an optional default_value argument. Have in addition fixed some other bugs with the mathematical __xxx__() operators in the tvector implementation.