mimetype -> MIMEType for protocol compatibility, allow setting the base-ref of a relative-scheme, more special cases for boxing/unboxing