A number of bug fixes and enhancements that didn't find their way to the main adjointOptimisation push