feat: added "strict" mode, controlled using Parser::setStrict(bool)
- default: false
- non-strict mode treats scalars as compatible