Possible fix for D[Cos[t],t] behaviour

Possible fix for issue #184