Fix for nonpublic class definition in swift template