It looks like you never modify options.gmlOptions, so you do not need to clone it.