Improve statement rule party matching

Just filled Issue 10518: Improve statement rule keyword matching - Tryton issue tracker which contains the feature fully implemented and ready to test!