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.
Merge pull request #1337 from encukou/uid-for-instructions

Add uid to Instructions so it can be animated