helpers for extracting random effects model matrices