Added new test example and small fix for sub referenced smartvar arrays