fix set_readonly_scalars option

hash and array shouldn't be readonly if --readonly_scalars has been set