Fix generation of foreign key URIs

Otherwise you just get the string rep of the model class
Merge pull request #62 from synthsym/patch-1

Fix generation of foreign key URIs (thanks @synthsym)