advanced_numpy: Added some helper functions as part of refactoring to aid in using NumPy structured array types.
advanced_numpy: Fixed some bugs in the helper functions added as part of refactoring to aid in using NumPy structured array types.