Variable Stars in Globular Clusters and in Related Systems