Merge remote branch 'origin/feature/7844_migrate_retrive'
Re #7857. Fix invalid initialisation of shared_array.

A boost::shared_array should be initialised with NULL or a pointer to an
array, so what was there were errors. In fact, in these cases there's no
need for any initialisation, only declaration.
Re #7857. Only initialise struct members if status is NX_OK.

If there is no next entry, NXgetnextentry will not have set the nxname
& nxclass variables that were passed to it. Therefore, a valgrind
complaint is avoided by checking for success & only coping the variables
on success.
Merge branch 'feature/7857_nexus_valgrind_errors' into develop