Adds StateSet UpdateCallback

Not sure it was a good idea to use an array instead of linked list.
It's more convienent to use array but has an overhead on all StateSet /
Node. To be consistent we should replace all callback system with array,
if we keep this way to do it.
Refactors a little but the arrayBuffer creation when parsing