Proper module ref check for relational-graph-db behavior