Fixed createContext so that devices > platform > deviceType in priority order