Mergers and acquisitions in solar last year were the most numerous since 2010, but other types of corporate finance, including debt financing and public market financing, declined.