Adjustments for userwarnings and logging WARNING

I removed some userwarnings for recursion limits and TODO and replaced them by logging WARNING.

Sometimes, it isn't obvious if the user can avoid the warning or not so I didn't change those cases.