add support for uint/uint[] uniform variables

Initial patch by Alexander Lang, thanks!
added: simpler add cursor (no state tracking)