added flatten method to Mojo::Collection