support to add/set fields in objects (apparently working, likely buggy)