add support for Mojo::Collections as well as arrayrefs in templates