Build relation classes on demand

This makes it possible to reference a relation from another one and get
it built on-the-fly if it's not there yet.

Notice that this behavior, eventually, will only happen during boot
time - at the end *all generated relation classes will be frozen*