TimeSeries various improvements and bugfixes

Fixed bugs #527, #517, #516, #515, #511, #510, #506, #503, #502, #498, #494