added support for static variables and subscript types