VID-1888 Add hook to add type='navigation' to galleries if needed

On the flip side, can we change this to be a static class method rather than an anonymous function?  Unless they are very short or need to create a closure, inline functions can be a little hard to read.