add function to check for already added uniform vars

Patch contributed by Michael Raab, many thanks!
add functions to insert chunk at given index and set/query chunk slot

Patch contributed by Michael Raab, many thanks!
fixed: move win to front on show
fixed: gcc 4.8.2 compile errors in generated python bindings
fixed: linux compile problems (non const it, signed/unsigned compare)