Document and explicitely test specifying relationships type is optional

First shot to fix #2531. Probably needs doc rewrite :)

cc @igorT 

As a side note, #2529 made effectively that work for belongsTo, thanks @wecc