resolves #405 - add attribute to control which substitutions are performed on docinfo files

- add docinfosubs attribute to control substitutions performed on docinfo files
- don't parse attribute option to cli as an array (interfers with docinfosubs value)
- add method to resolve docinfosubs
- add tests for docinfosubs attribute
minor optimizations