more intelligent determination of the cause of no visible data

this adds checks for ids_only and tags[_only] output of ways and relations.
also some refactoring for nicer code using lodash