Extensions and biextensions of locally constant group schemes, tori and abelian schemes