[sorno_replace_thrift_const] initial version

Summary:

Replace constants with literal values for a thrift file except for the
declaration. This is mainly for thrift compilers which cannot handle constants
within lists or other collection structures.

Also fix something in sorno_summarize_code