changed ActiveSupport::OkJson#textparse to use #valparse for both :str and :val tokens