Extended getStacks() to work also on ISurfaces objects.