[BZ-995062] add pattern to WindowDeclaration serialization