#52 - corrected autogenerated copy functions, renamed Vtable index function

fixed the problem of incorrect use of function UA_toIndex in the autogenerated copy functions. Renamed UA_toIndex (in consideration of #52) to UA_ns0ToVTableIndex to make the usage clear.