Implement Assign support for __array_variable__ and refactor variable initialization code