Move valptridx helpers out of macro
Improve loops in font handling
Use range_for in pae_aux