Merge "Support MATCH_WRITABLE for IS_PENDING AND IS_TRASHED match." into rvc-dev