Added logging.
Added annotation arity inconsistency unit test.
Identified a logging bug and worked around an existing instance that triggers it.