fixed bug when out of range times are supplied to ts-get-range (addresses #26), also added error checking to all ts-get* operations to ensure consistency between queries logotimes and the logotime column of ts object