NXP-14749: support isProxy and isImmutable methods on ShallowDocument