Allow a map function to be passed through when getting ValueAsArrayOfType

This function will transform either the Object or the List of Objects
into some other value