added code so that the file is renamed at the same time when renaming a type if the file name without its extension is same as the type name. (Issue #48)