Extract and return the variable declaration so it can be added as a field
Convert local to field beta, the annotations need fixing before using the graph
InlineLocal: fixed local assignment ommition, added @typ where it was missing
ConvertLocalToField refactored used methods for pattern matching instead of switch