close #218 changed the creation of inv definitions to use the ASTFactory such that all fields are initialized correctly.