Updated scope() function to act like config()

Scope clears the store if called with no parameters. Tests added to check `$name` is a string.