added generics to typed values (fox for https://github.com/albertlatacz/java-repl/issues/2)