Initialize value size by size of value type for no subrec table
Fix a bug that result value is broken

In this test case, an optimization is used. The optimization shares y
and res. So we should not change res before retrieving y value. If we
change res, retrieving y value may be broken.