Add script for fixing link_type replication.
Merge branch 'fix-link-type-2014-12-02' into beta

* fix-link-type-2014-12-02:
  Add script for fixing link_type replication.