Use the primary key type for the generated foreign key

/to @ritch 

This is part of the fix for https://github.com/strongloop/loopback-datasource-juggler/issues/58. The 2nd part should come from loopback-connector-mongodb.