[loader] Accept only a string in _canBeAttached
[loader] Fix API Docs for optionalRequires

Optional dependencies try to be consistent with the idea that they're
"optional". If the module is available (loaded and without a test or
with a passing test) it is used. If it is not available (with a failing
test), it is ignored.