Fix memory leak-like behaviour when exceptions are thrown from prog_agrad_ad model.
Add sub_column and sub_row functions.
Rename sub_column to sub_col to be consistent with other Stan functions.