On the coordinate rings of quiver varieties associated to extended Dynkin diagrams Freeness of adjoint linear systems on threefolds with terminal Gorenstein singularities or some quotient singularities 