Fix expansion for relations in term positions.

Explicitly disables random generation for relations in term
positions, but fixes a problem with runtime functionality
for the same.