debugged versatile dataset lead/lag, added unit test.