Subcontext fixes and formatting
Added type-erased parser, tests and examples
Moved is_parser trait to its own file