dia.Graph: allow passing options object to fromJSON, clear and resetCells methods