Fix assignment of IDs to multiple relations when one of them is empty and add test for it (and in general for ID assignment)
Handle the corner case of having a table containing a single row
Add comment about function
Merge pull request #179 from HazyResearch/hotfix-test_fastseq_assign

Fix assignment of IDs to multiple relations when one of them is empty and add test for it (and in general for ID assignment)