Adding possibility to set custom duplication method and associations remapping. Fix #22