stk:menu.render refactored

The template now allows both menuitems and menuitem elements as input
(for easier filtration).