Make the menu html serializer pass LI items through as-is (allows for separators)

When using the menu model, it can be useful to put dividers into the menu. This is most easily done by passing an `LI` object into the menu arguments, but the menu serializer always assumes tuples describing clickable menu items. This fix passes through `LI` objects as-is if they exist in the menu.