Error fit composite

An attempt to fit a composite model now raises a NotImplementedError as suggested in #1836.