Fix swiftformat issues with Swift extension template (#428)
Move the `fileprivate` access modifier to the extension declaration to reduce swiftformat errors in generated code. This required a separate extension declaration for the protocol conformance because `fileprivate` could not be applied to the same declaration as the one declaring the protocols.