Revert "Remove AC singleton_class polyfil."

This reverts commit c05840f7f00d676f00e0971f828faa09f2d76e8b.
Revert "Remove 1.8.7 rubies."

This reverts commit 59e81123b62f4b89ae0b0b84729bf5efabb21624.