* Apply Dominique patch for handling setType()
  Fixes #253