Fix function array_all_thanks() to get rid of global vars.
Improve travis setup for EPV.