Revert "respond_to? is faster than comparing classes, it seems."

This reverts commit 7bd17a3cf9ceaf2e23fa05ae22049c031e49b257.