Fix implementation of trjconv -dump
Now the frame nearest the given time is always dumped, assuming the trajectory frames are in temporal order. If not, the result is unspecified but the code does not crash and does something that may be useful. Added some basic test coverage.
Minor fixes to historical memory mismanagement.
Closes #2873 (closed)
Edited by Mark Abraham