Fix to not replace this.factories[model] reference when using custom values

`this.factories[model]` was being replaced by the reference modifications in `extend` method.
Adding a empty Object as first argument fixed the bug.