encode_value: Use MAPPING_FLAG_NO_SHRINK. The mapping with encoded values is intentionally allocated with medium sized hashtable. Shrinking it due to use of map_delete() is just a waste of cpu. Attempts to improve performance of encode_value() for objects, programs and functions a bit more.