doc-term matrix from an InstanceList

Plus accessor functions for Instance/InstanceList
In theory, working term_year_matrix calculation

uses Matrix's sparseMatrix facility in an attempt not to go crazy.
foreach required for instances_tdm
instances_tdm without foreach