Add AbstractTypes examples from scala docs.