warn on reference to missing attribute if attribute-missing is "warn"

- warn on reference to a missing attribute if attribute-missing=warn
- warn on reference to a missing attribute if attribute-missing=drop-line
- remove call to debug when dropping line with reference to a missing attribute
- optimize & cleanup attribute substitution