[PATCH v2 20/36] expo: Use switch statements more for object types