Added writeOptionalStreamable and used that to serialize facets in percolate response.