templated operator<< for cases where the user does not provide one