Second attempt at fixing #96

This one fetches the actual relation definition from the model's class
to find out if it's supposed to be used as a list.