Extended handling of keywords parameters in patterns