After fixing a few more issues, the relation module should be mostly
functional. I said 'mostly' because I haven't tested every class yet,
but I did make sure the most important ones (e.g. evaluation, model
training, etc.) work.
A special thanks goes to Pei and Steve for their help.
Dima