Throw if constructor isn't a function.