Fixed antiperiodicity property of imtime

- the condition p%2 ==1 was wrong if p<0 (never true!)
- added corresponding test (gf_notail)