Fix #1961, where a @TypeInfo was being added to a local declaration. No idea how this was working for attributes local to methods.
Fix #1961 in another way, by fixing our test for localness to understand things being local to a constructor.
Issue #1961: Add test