Refactored FXInternal::deepCopyMembers to avoid unnecessary deepcopying