prepare_template now uses get_model_ct_tuple (see #981)