Add routines to convert gpu object back to double

1. Add function gatherStruct that can convert an object (scene, oi,
etc.) with gpuArray component back to double component
2. When we call vcAddAndSelectObject / vcAddObject, we first convert the
object back to double format (from gpuArray)