current MRI prepend implementation

prepend implementation to match MRI's behavior. valid until at least MRI 2.3.

See also #1948 for tree inheritance implementation.