Added support for collect nodes or URI ids in relationship based on options hash