Track when a relation is loaded. Fixes #373