AddValue refactoring added

Similar to AddMethod, intended for val/var creation.
Current limitation: var printing is implemented with direct var addition (otherwise var is not printed):