Fix singular/multiple relation confusion in from_array