Implement relative object names.

Fixes #5925