$\texttt{MixGR}$: Enhancing Retriever Generalization for Scientific Domain through Complementary Granularity