ensure_resource: be more verbose in debug mode

helps discovering duplication issues, especially when figthing boolean vs. string arguments