Fixed deferred loading on nearest neighbour trajectory extraction. Added a test, requiring some extra subclassing hooks to the DataManager class.