Factoriality Properties of Moduli Spaces of Sheaves on Abelian and K3 Surfaces