Update ActiveQuery.php

Allow users to return a custom class when using scopes.