Consistent use of LinkedHashMaps and independent getAttributeNames Enumeration in Servlet/Portlet mocks

Issue: SPR-10224
MediaType throws dedicated InvalidMediaTypeException instead of generic IllegalArgumentException

Issue: SPR-10226