Fix crash/problem when saving a pattern to a .kra file
Add two methods to KoPattern which save the file into .pat format not taking file extension into account
BUG:346932 Fixes T310