threadcommunicator: added support for VariableSize