Nested discovery fixes

Sorry for the lack of tests.  Hopefully I'll get to this tomorrow.
Anything seems to be representable as a string.