Implement Foreach toplevel construct
Refactor the LedVM to use templates, prepping for running on an arduino