little refactoring on Value and ExpressionCompiler

Change-Id: Ia2bf25bb449a01fb171e8bd3572613aed9f7aa88
Signed-off-by: marceloportilho <marceloportilho@gmail.com>