Scroll query does not accept "field paths"

Ayup, I got a terms search query/filter that works ok:

localhost:9200/current-records/_search/
{ "query": {
    "bool": {
        "must": {
            "query": {
               "match_all": {}
            }
        },
        "filter": {
            "terms": {
                "object.isVersionOf.resId": [ "ba", "foo" ]
            }
        }
    }
}}

The field of course does not have a dot in it but is "embedded"

{
  "current-records": {
    "mappings": {
      "record": {
        "properties": {
          "object": {
            "properties": {
             "isVersionOf": {
                "properties": {
                  "resId": {
                    "type": "string",
                    "index": "not_analyzed"
                  }
                }
              }
           }
        }
    }
  }        
}

But asking for a scroll with the same query throws an error:

localhost:9200/current-records/_search/scroll=10m
{
    ... same as previous query ....
}

{
  "error": {
    "root_cause": [
      {
        "type": "mapper_parsing_exception",
        "reason": "Field name [object.isVersionOf.resId] cannot contain '.'"
      }
    ],
    "type": "mapper_parsing_exception",
    "reason": "Field name [object.isVersionOf.resId] cannot contain '.'"
  },
  "status": 400
}

Is this the intended behaviour? I would expect to be able to scroll any valid query.

Kind regards

-andré