More consistent belongsTo setup, closes #334\
\
Cast fk as string before comparison