Fix Gemfile for Ruby 2 support.
Fix inlineStr parsing when data_only: false. Optimize performance.