Add uid to Instructions so it can be animated

uid adding is handled in a new ObjectWithUid C class,
which both EventDispatcher and Instruction inherit from.
This allows running animations on graphics instructions.

Test for a instruction animation is insluded.