First superficial changes. Added library. Made files compile again.
Some more comments.
Hopefully fixed generation of array traversal code.

Tried to make things proof for running the transformer multiple times
on the same classes with is unlikely to be avoidable in all cases.
Essentially the interface gets added/implemented only if not already
present.