semantic: Implement isVariableStatic for nested variables.