#4131 add/delete from collection gives 403

reformat some f# code as well