Fix strange val.hpp build errors on gcc-7 caused by friend classes not working as expected.
Fix strange val.hpp build errors on gcc-7 caused by friend classes not working as expected.

coder0xff/Plange,coder0xff/Plange,coder0xff/Plange,coder0xff/Plange