Standardise imports in Template.java

While some of these imports may not actually be used, it will help to
prevent common compile errors due to imports not being done.
Update a couple of maps to use new imports… will update the rest later