extract_term_to_matrix: Extracts a term with one column per fixed or random-level into a matrix
Description
Extracts a 3D array for a term with sample, linear-model,
random/fixed-effect order and returns a matrix with samples as rows
and columns in order 1) all random/fixed effects for lm1, 2) all
random/fixed effects for lm2, etc.