Allow osx_defaults to take a type