Add with_sexp to pattern. Replace option by sexp_option

Replace option fields by sexp_option to remove empty fields of pattern in s-expresseion.  
Add with_sexp for mask, switchId, portId, pattern