Fix bug in multi-point environment call -- wasn't incrementing result pointer

Fix bug in multi-point environment call -- wasn't incrementing result pointer

Also modify the multi-point texture and environment calls to use
get_perthread_info and get_texture_handle to do those expensive operations
just once per grid, rather than per point.