git_bare: Use an enum to represent the root object type
Instead of parsing self.bundle_type on the fly in multiple places.