A few Groovy improvements

This highlights the code as Groovy not cpp, adds a couple more syntactic options to handling Lists