Got the LAPACKE example to work in row major form and upgraded the derefencing function to work with nested arrays.