Index/variable dictionaries for matrix assembly