Accept an options array at Type::updateDocument()

Allows setting options when updating Documents with Scripts:
```
$myType->updateDocument($myScript, array("retry_on_conflict"=>3, "refresh"=>true);
```

It's even being used at TypeTest::testUpdateDocument():
```
public function testUpdateDocument()
{
    ...
    ...
    ...
    $document = new Document();
    $script = new Script(
        "ctx._source.name = name; ctx._source.counter += count",
        array(
            'name' => $newName,
            'count' => 2,
        ),
        null,
        $id
    );
    $script->setUpsert($document);

    $type->updateDocument($script, array('refresh' => true));
    $updatedDoc = $type->getDocument($id)->getData();
    $this->assertEquals($newName, $updatedDoc['name'], "Name was not updated");
    $this->assertEquals(3, $updatedDoc['counter'], "Counter was not incremented");
}
```