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