Prevent error when calling <association>_ids=

Error raised when creating a delete statement as a result of calling
association's *_ids= method.

Error: undefined method `abstract_class?' for Object:Class
Merge pull request #108 from envylabs/master

Prevent error when calling <association>_ids=
add support for recursive CTEs