Added support to use relationship attributes as special pks (issue #446)

Minor fix on custom columns positioning (issue #449 #429)
Merge branch 'special-pk-fix' into develop