Fixed Derivative behaviour with t variable

Re-adresses issue #184 after I undid the fix with a following (and unrelated) pull request.