Fix MenuResource annotation retention policy and element type;