Expose injection trigger to registry scan
Parser: make inherit a parse-time flag

Making this global for the parser instance does not make any sense, and breaks for valid use cases.
Pass registry trigger on to patterns
Modal: pass pattern config to setPosition
Parser: when blocking inherit also do not inherit defaults
Modal: Add closing option (ticket #355)