Fix `config.transfer_nested_constants = true`.

We shouldn’t give users an error when they stub
a constant that is not a class or module.

Fixes #677.
Remove transferred nested constants on reset.

Fixes #678.
Merge pull request #680 from rspec/fix-transfer-nested-constants-config

Fix `config.transfer_nested_constants = true`.