Fix untainting to not try to dup/untaint immediate objects.

Thanks to john@cozy.co for the bug report.