Changing MasterTemplateId to public

When you create a Template in code, I think there is no way to define a masterTemplate. If MasterTempateId were to be public it could be done.