Implement schema.extendModel, closes #157